package com.controller;



import com.utils.ContextUtils;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping(value = "/page")
public class UrlController{
	
	@RequestMapping(value = "/arrive/{subject}/{pagename}")
	public ModelAndView arriveUrl
	(@PathVariable("subject") String subject,@PathVariable("pagename") String pagename) {
		ModelAndView mv = new ModelAndView(subject+"/"+pagename);
		return mv;
	}
	
	 @RequestMapping("home")
	    public String index() {
	        System.out.println("��¼�ɹ�");
	        return "index";
	 }

	

}
